import 'package:easy_refresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:sainbainu/common/models/request/pager_request.dart';
import 'package:sainbainu/common/models/response/version_list_response.dart';
import 'package:sainbainu/common/repositories/version_repository.dart';

class VersionState {
  // title
  final _title = "".obs;
  set title(value) => _title.value = value;
  get title => _title.value;

  /// 刷新控制器
  late EasyRefreshController refreshController;

  /// 内容仓库
  late VersionRepository versionRepository;

  /// 分页请求
  late PagerRequest pagerRequest;

  /// 内容
  VersionListResponse versionListResponse = VersionListResponse(
    total: 0,
    rows: [],
  );

  /// 是否有更多
  bool hasMore = false;

  /// 本地版本号
  int? localVersionCode;
}
